import * as PIXI from "pixi.js";
export default class EnemySprite {
  constructor() {
    const baseBossTexture = PIXI.BaseTexture.from("/public/boss/火之恶魔1.png");
    this.bossTexture = [];
    this.bossTexture.push(
      new PIXI.Texture(baseBossTexture, new PIXI.Rectangle(8, 4, 65, 68))
    );
    this.bossTexture.push(
      new PIXI.Texture(baseBossTexture, new PIXI.Rectangle(8, 85, 65, 68))
    );
    this.bossTexture.push(
      new PIXI.Texture(baseBossTexture, new PIXI.Rectangle(8, 164, 65, 68))
    );
    this.bossTexture.push(
      new PIXI.Texture(baseBossTexture, new PIXI.Rectangle(8, 242, 65, 68))
    );
    this.container = new PIXI.AnimatedSprite(this.bossTexture);
    this.container.animationSpeed = 0.1;
    this.container.scale.set(2);
    this.container.play();
    this.hp = 20;
  }
}
